/*
 * @(#)EventVO.java
 * Copyright (c) 2011 TravelSky Technology Ltd. All Right Reserved. 
 */
package com.meetingshow.privilege.uiservice.model;

import com.meetingshow.common.base.uiservice.model.BaseVO;
import com.meetingshow.privilege.dao.model.EventPO;

public class EventVO extends BaseVO {
    
    /**
     * 
     */
    private static final long serialVersionUID = 4640234121221355056L;
    private java.lang.Integer eventId;
        
    public void setEventId(java.lang.Integer eventId) {
        this.eventId = eventId;
    }
        
    public java.lang.Integer getEventId() {
        return eventId;
    }
    private java.lang.String eventType;
        
    public void setEventType(java.lang.String eventType) {
        this.eventType = eventType;
    }
        
    public java.lang.String getEventType() {
        return eventType;
    }
    private java.lang.Integer fromUserId;
        
    public void setFromUserId(java.lang.Integer fromUserId) {
        this.fromUserId = fromUserId;
    }
        
    public java.lang.Integer getFromUserId() {
        return fromUserId;
    }
    private java.lang.String fromUserName;
        
    public void setFromUserName(java.lang.String fromUserName) {
        this.fromUserName = fromUserName;
    }
        
    public java.lang.String getFromUserName() {
        return fromUserName;
    }
    private java.lang.Integer toUserId;
        
    public void setToUserId(java.lang.Integer toUserId) {
        this.toUserId = toUserId;
    }
        
    public java.lang.Integer getToUserId() {
        return toUserId;
    }
    private java.lang.String toUserName;
        
    public void setToUserName(java.lang.String toUserName) {
        this.toUserName = toUserName;
    }
        
    public java.lang.String getToUserName() {
        return toUserName;
    }
    private java.lang.Integer toMeetingId;
        
    public void setToMeetingId(java.lang.Integer toMeetingId) {
        this.toMeetingId = toMeetingId;
    }
        
    public java.lang.Integer getToMeetingId() {
        return toMeetingId;
    }
    private java.lang.String toMeetingName;
        
    public void setToMeetingName(java.lang.String toMeetingName) {
        this.toMeetingName = toMeetingName;
    }
        
    public java.lang.String getToMeetingName() {
        return toMeetingName;
    }
    private java.lang.Integer meetingId;
        
    public void setMeetingId(java.lang.Integer meetingId) {
        this.meetingId = meetingId;
    }
        
    public java.lang.Integer getMeetingId() {
        return meetingId;
    }
    private java.lang.String meetingName;
        
    public void setMeetingName(java.lang.String meetingName) {
        this.meetingName = meetingName;
    }
        
    public java.lang.String getMeetingName() {
        return meetingName;
    }
    private java.lang.String meetingEvent;
        
    public void setMeetingEvent(java.lang.String meetingEvent) {
        this.meetingEvent = meetingEvent;
    }
        
    public java.lang.String getMeetingEvent() {
        return meetingEvent;
    }
    private java.util.Date createTime;
        
    public void setCreateTime(java.util.Date createTime) {
        this.createTime = createTime;
    }
        
    public java.util.Date getCreateTime() {
        return createTime;
    }

    public EventVO() {
    }

    public EventVO(EventPO eventPO) {
        setEventId(eventPO.getEventId());
        setEventType(eventPO.getEventType());
        setFromUserId(eventPO.getFromUserId());
        setFromUserName(eventPO.getFromUserName());
        setToUserId(eventPO.getToUserId());
        setToUserName(eventPO.getToUserName());
        setToMeetingId(eventPO.getToMeetingId());
        setToMeetingName(eventPO.getToMeetingName());
        setMeetingId(eventPO.getMeetingId());
        setMeetingName(eventPO.getMeetingName());
        setMeetingEvent(eventPO.getMeetingEvent());
        setCreateTime(eventPO.getCreateTime());
    }

    public EventPO toEventPO() {
        EventPO eventPO = new EventPO();
        
        eventPO.setEventId(getEventId());
        eventPO.setEventType(getEventType());
        eventPO.setFromUserId(getFromUserId());
        eventPO.setFromUserName(getFromUserName());
        eventPO.setToUserId(getToUserId());
        eventPO.setToUserName(getToUserName());
        eventPO.setToMeetingId(getToMeetingId());
        eventPO.setToMeetingName(getToMeetingName());
        eventPO.setMeetingId(getMeetingId());
        eventPO.setMeetingName(getMeetingName());
        eventPO.setMeetingEvent(getMeetingEvent());
        eventPO.setCreateTime(getCreateTime());
        
        return eventPO;
    }
}